<?php

namespace CtyunOss\exceptions;

use CtyunOss\struct\Error;

/**
 * Class OssHttpException
 * @package CtyunOss\exceptions
 *
 * @author  Violet_Ice紫冰 <violetice@aliyun.com>
 * @create  2020-06-26 11:14:31
 */
class OssHttpException extends CtyunOssException
{
    protected $code = 2001;

    protected $message = '请求异常：';

    public function __construct(Error $message, $code = 0, \Throwable $previous = null)
    {
        parent::__construct($this->message . (string)$message, $code, $previous);
    }
}